package multithreading.threadPool;

import java.util.concurrent.*;

public class MyThreadPool {
    public static void main(String[] args) {
        //自定义线程池
        ThreadPoolExecutor pool = new ThreadPoolExecutor(
                3,
                6,
                60,
                TimeUnit.SECONDS,
                new ArrayBlockingQueue<>(10),
                Executors.defaultThreadFactory(),
                new ThreadPoolExecutor.AbortPolicy()
        );
    }
}
